<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			.div1{
				width:300px;
				height:300px;
				vertical-align: middle;
				text-align: center;
				background:lavender;
				display: table-cell;
			}
			.div2{
				width:100px;
				height:100px;
				vertical-align: middle;
				text-align: center;
				background:lemonchiffon;
				margin:0 auto;
			}
			img{
				vertical-align: middle;
			}
		</style>
	</head>
	<body>
		<img src="1.jpg" alt="" />你好
		<div class="div1">	
			<div class="div2">
				内层的div
			</div>
		</div>
		<div class="div1">	
			外层div外层div外层div外层div外层div外层div外层div外层div外层div外层div
			<div class="div2">
				内层的div
			</div>
		</div>
	</body>
</html>
